package com.example.module_marketers.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.Res
import com.bw.lib_http.Const
import com.example.module_marketers.entity.*
import retrofit2.http.*

interface MarketersApiService:BaseApiServer {
    @GET(Const.GET_BUSINESS_PROFILE_LIST)
    suspend fun getBusinessProfileList(): Res<BusinessProfileEntity>
    @GET(Const.GET_BUSINESS_PROFILE_DETAIL_BY_ID)
    suspend fun getBusinessProfileDetailById(@Path("id") id:Int):Res<BusinessProfileEntityItem>
    @GET(Const.GET_RESIDENCY_APPLICATION_LIST)
    suspend fun getResidencyApplicationList():Res<ResidencyApplicationEntity>
    @POST(Const.GET_RESIDENCY_APPLICATION_ADD)
    suspend fun addResidencyApplication(@Body residencyApplicationEditEntity: ResidencyApplicationEditEntity):Res<ResidencyApplicationEntityItem>
    @GET(Const.GET_RESIDENCY_APPLICATION_BY_ID)
    suspend fun getResidencyApplicationDetailById(@Path("id") id:Int):Res<ResidencyApplicationEntityItem>
    @PATCH(Const.GET_RESIDENCY_APPLICATION_APPROVE)
    suspend fun approveResidencyApplication(@Path("id") id:Int):Res<ResidencyApplicationEntityItem>
}